home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / psz80a14.arc / MNEMLEV2.ASM < prev    next >
Encoding:
Assembly Source File  |  1988-03-24  |  10.7 KB  |  514 lines

  1.          .command  +m2        ;64180 level selection
  2.          .org 0               ;z80 mnemonics test
  3.          tst (hl)
  4.          tst 0
  5.          tst 255
  6.          tst a
  7.          tst b
  8.          tstio 0
  9.          tstio 255
  10.          slp
  11.          mlt bc
  12.          mlt de
  13.          mlt hl
  14.          mlt sp
  15.          in0 a,(0)
  16.          in0 b,(255)
  17.          out0 (0),a
  18.          out0 (255),b
  19.          otim
  20.          otimr
  21.          otdm
  22.          otdmr
  23.          adc a,h'00
  24.          adc a,h'ff
  25.          adc a,a
  26.          adc a,b
  27.          adc a,c
  28.          adc a,d
  29.          adc a,e
  30.          adc a,h
  31.          adc a,l
  32.          adc a,(hl)
  33.          adc a,(ix+-128)
  34.          adc a,(ix-128)
  35.          adc a,(iy-128)
  36.          adc a,(iy+127)
  37.          adc hl,bc
  38.          adc hl,de
  39.          adc hl,hl
  40.          adc hl,sp
  41.          add a,h'00
  42.          add a,h'ff
  43.          add a,a
  44.          add a,l
  45.          add a,(hl)
  46.          add a,(ix+-128)
  47.          add a,(iy+127)
  48.          add hl,bc
  49.          add hl,de
  50.          add hl,hl
  51.          add hl,sp
  52.          add ix,bc
  53.          add ix,de
  54.          add ix,sp
  55.          add iy,bc
  56.          add iy,de
  57.          add iy,sp
  58.          add ix,ix
  59.          add iy,iy
  60.          and h'00
  61.          and h'ff
  62.          and a
  63.          and l
  64.          and (hl)
  65.          and (ix+-128)
  66.          and (iy+127)
  67.          bit 0,a
  68.          bit 0,l
  69.          bit 0,(hl)
  70.          bit 0,(ix+-128)
  71.          bit 0,(iy+127)
  72.          bit 7,a
  73.          bit 7,l
  74.          bit 7,(hl)
  75.          bit 7,(ix+-128)
  76.          bit 7,(iy+127)
  77.          call h'00
  78.          call h'ff
  79.          call longtest
  80.          call nz,h'00
  81.          call z,h'ff
  82.          call nc,longtest
  83.          call c,longtest
  84.          call po,h'00
  85.          call pe,1000
  86.          call p,128
  87.          call m,0
  88.          ccf
  89.          cp h'00
  90.          cp h'ff
  91.          cp a
  92.          cp l
  93.          cp (hl)
  94.          cp (ix+-128)
  95.          cp (iy+127)
  96.          cpd
  97.          cpdr
  98.          cpi
  99.          cpir
  100.          cpl
  101.          daa
  102.          dec a
  103.          dec l
  104.          dec (hl)
  105.          dec (ix+-128)
  106.          dec (iy+127)
  107.          dec bc
  108.          dec de
  109.          dec hl
  110.          dec sp
  111.          dec ix
  112.          dec iy
  113.          di
  114.          djnz rtest
  115.          ei
  116.          ex af,af'
  117.          ex de,hl
  118.          ex (sp),hl
  119.          ex (sp),ix
  120.          ex (sp),iy
  121.          exx
  122.          halt
  123.          im 0
  124.          im 1
  125.          im 2
  126.          in a,(h'00)
  127.          in a,(h'ff)
  128.          inc a
  129.          inc l
  130.          inc (hl)
  131.          inc (ix+-128)
  132.          inc (iy+127)
  133.          inc bc
  134.          inc de
  135.          inc hl
  136.          inc sp
  137.          inc ix
  138.          inc iy
  139.          ind
  140.          indr
  141.          ini
  142.          inir
  143.          in a,(c)
  144.          in c,(c)
  145.          in l,(c)
  146.          jp h'00
  147.          jp h'ff
  148.          jp longtest
  149.          jp nz,h'00
  150.          jp z,h'ff
  151.          jp nc,longtest
  152.          jp c,longtest
  153.          jp po,h'00
  154.          jp pe,1000
  155.          jp p,128
  156.          jp m,0
  157.          jp (hl)
  158.          jp (ix)
  159.          jp (iy)
  160.          jr c,rtest
  161. rtest:   jr rtest
  162.          djnz rtest
  163.          jr nc,rtest
  164.          jr nz,rtest
  165.          jr z,rtest
  166.          ld a,i
  167.          ld a,r
  168.          ld a,(longtest)
  169.          ld a,(h'00)
  170.          ld a,(h'ff)
  171.          ld a,(hl)
  172.          ld a,(bc)
  173.          ld a,(de)
  174.          ld a,l
  175.          ld l,a
  176.          ld l,h
  177.          ld hl,(h'00)
  178.          ld hl,(longtest)
  179.          ld bc,(h'00)
  180.          ld de,(longtest)
  181.          ld sp,(h'ff)
  182.          ld ix,(h'00)
  183.          ld iy,(h'ff)
  184.          ld ix,(longtest)
  185.          ld i,a
  186.          ld r,a
  187.          ld a,h'00
  188.          ld l,h'ff
  189.          ld bc,h'00
  190.          ld de,h'ff
  191.          ld sp,h'ff
  192.          ld hl,longtest
  193.          ld hl,1000
  194.          ld ix,1000
  195.          ld iy,longtest
  196.          ld a,(hl)
  197.          ld l,(hl)
  198.          ld a,(ix+127)
  199.          ld a,(iy+127)
  200.          ld a,(iy-128)
  201.          ld l,(iy+-128)
  202.          ld l,(iy-128)
  203.          ld sp,hl
  204.          ld sp,ix
  205.          ld sp,iy
  206.          ld (1000),a
  207.          ld (longtest),a
  208.          ld (1000),hl
  209.          ld (longtest),hl
  210.          ld (1000),bc
  211.          ld (longtest),bc
  212.          ld (1000),de
  213.          ld (longtest),de
  214.          ld (1000),sp
  215.          ld (longtest),sp
  216.          ld (1000),ix
  217.          ld (longtest),iy
  218.          ld (hl),h'00
  219.          ld (hl),h'ff
  220.          ld (ix+127),h'00
  221.          ld (ix+-128),h'ff
  222.          ld (iy-128),h'ff
  223.          ld (iy-128),-128
  224.          ld (iy-128),127
  225.          ld (iy+127),0
  226.          ld (hl),a
  227.          ld (hl),l
  228.          ld (ix+127),a
  229.          ld (iy+-128),l
  230.          ld (iy-128),l
  231.          ld (bc),a
  232.          ld (de),a
  233.          ld (hl),a
  234.          ldd
  235.          lddr
  236.          ldi
  237.          ldir
  238.          neg
  239.          nop
  240.          or h'00
  241.          or h'ff
  242.          or a
  243.          or l
  244.          or (hl)
  245.          or (ix+-128)
  246.          or (iy+127)
  247.          out (c),a
  248.          out (c),l
  249.          outd
  250.          otdr
  251.          outi
  252.          otir
  253.          out (h'00),a
  254.          out (h'ff),a
  255.          pop bc
  256.          pop de
  257.          pop hl
  258.          pop af
  259.          pop ix
  260.          pop iy
  261.          push bc
  262.          push de
  263.          push hl
  264.          push af
  265.          push ix
  266.          push iy
  267.          res 0,a
  268.          res 0,l
  269.          res 0,(hl)
  270.          res 0,(ix+-128)
  271.          res 0,(iy+127)
  272.          res 7,a
  273.          res 7,l
  274.          res 7,(hl)
  275.          res 7,(ix+-128)
  276.          res 7,(iy+127)
  277.          ret
  278.          ret nz
  279.          ret z
  280.          ret nc
  281.          ret c
  282.          ret po
  283.          ret pe
  284.          ret p
  285.          ret m
  286.          reti
  287.          retn
  288.          rl a
  289.          rl l
  290.          rl (hl)
  291.          rl (ix+-128)
  292.          rl (iy+127)
  293.          rla
  294.          rlc a
  295.          rlc l
  296.          rlc (hl)
  297.          rlc (ix+-128)
  298.          rlc (iy+127)
  299.          rlca
  300.          rld
  301.          rr a
  302.          rr l
  303.          rr (hl)
  304.          rr (ix+-128)
  305.          rr (iy+127)
  306.          rra
  307.          rrc a
  308.          rrc l
  309.          rrc (hl)
  310.          rrc (ix+-128)
  311.          rrc (iy+127)
  312.          rrca
  313.          rrd
  314.          rst h'00
  315.          rst h'20
  316.          rst h'38
  317.          sbc a,h'00
  318.          sbc a,h'ff
  319.          sbc a,a
  320.          sbc a,l
  321.          sbc a,(hl)
  322.          sbc a,(ix+-128)
  323.          sbc a,(iy+127)
  324.          sbc hl,bc
  325.          sbc hl,de
  326.          sbc hl,hl
  327.          sbc hl,sp
  328.          scf
  329.          set 0,a
  330.          set 0,l
  331.          set 0,(hl)
  332.          set 0,(ix+-128)
  333.          set 0,(iy+127)
  334.          set 7,a
  335.          set 7,l
  336.          set 7,(hl)
  337.          set 7,(ix+-128)
  338.          set 7,(iy+127)
  339.          sla a
  340.          sla l
  341.          sla (hl)
  342.          sla (ix+-128)
  343.          sla (iy+127)
  344.          sra a
  345.          sra l
  346.          sra (hl)
  347.          sra (ix+-128)
  348.          sra (iy+127)
  349.          srl a
  350.          srl l
  351.          srl (hl)
  352.          srl (ix+-128)
  353.          srl (iy+127)
  354.          sub h'00
  355.          sub h'ff
  356.          sub a
  357.          sub l
  358.          sub (hl)
  359.          sub (ix+-128)
  360.          sub (iy+127)
  361.          xor h'00
  362.          xor h'ff
  363.          xor a
  364.          xor l
  365.          xor (hl)
  366.          xor (ix+-128)
  367.          xor (iy+127)
  368.  
  369. synctst1:
  370.          adc a,forward2
  371.          adc a,forward1
  372.          adc a,(ix+forward3)
  373.          adc a,(iy+forward4)
  374.          add a,forward2
  375.          add a,forward1
  376.          add a,(ix+forward3)
  377.          add a,(iy+forward4)
  378.          and forward2
  379.          and forward1
  380.          and (ix+forward3)
  381.          and (iy+forward4)
  382.          bit bit0,a
  383.          bit bit0,l
  384.          bit bit0,(hl)
  385.          bit bit0,(ix+forward3)
  386.          bit bit0,(iy+forward4)
  387.          bit bit7,a
  388.          bit bit7,l
  389.          bit bit7,(hl)
  390.          bit bit7,(ix+forward3)
  391.          bit bit7,(iy+forward4)
  392.          call forward2
  393.          call forward1
  394.          call longtest
  395.          call nz,forward2
  396.          call z,forward1
  397.          call nc,longtest
  398.          call c,longtest
  399.          call po,forward2
  400.          call pe,1000
  401.          call p,128
  402.          call m,0
  403.          cp forward2
  404.          cp forward1
  405.          cp (ix+forward3)
  406.          cp (iy+forward4)
  407.          dec (ix+forward3)
  408.          dec (iy+forward4)
  409.          in a,(forward2)
  410.          in a,(forward1)
  411.          inc (ix+forward3)
  412.          inc (iy+forward4)
  413.          jp forward2
  414.          jp forward1
  415.          jp longtest
  416.          jp nz,forward2
  417.          jp z,forward1
  418.          jp nc,longtest
  419.          jp c,longtest
  420.          jp po,forward2
  421.          jp pe,1000
  422.          jp p,128
  423.          jp m,0
  424.          ld a,(longtest)
  425.          ld a,(forward2)
  426.          ld a,(forward1)
  427.          ld ix,(forward2)
  428.          ld iy,(forward1)
  429.          ld ix,(longtest)
  430.          ld a,forward2
  431.          ld bc,forward2
  432.          ld sp,forward1
  433.          ld hl,longtest
  434.          ld hl,1000
  435.          ld ix,1000
  436.          ld iy,longtest
  437.          ld a,(ix+forward4)
  438.          ld l,(iy+forward3)
  439.          ld (1000),a
  440.          ld (longtest),a
  441.          ld (1000),hl
  442.          ld (longtest),hl
  443.          ld (1000),bc
  444.          ld (longtest),bc
  445.          ld (1000),ix
  446.          ld (longtest),iy
  447.          ld (hl),forward2
  448.          ld (hl),forward1
  449.          ld (ix+forward4),forward2
  450.          ld (ix+forward3),forward1
  451.          ld (ix+forward4),a
  452.          ld (iy+forward3),l
  453.          or forward2
  454.          or forward1
  455.          or (ix+forward3)
  456.          or (iy+forward4)
  457.          out (forward2),a
  458.          out (forward1),a
  459.          res bit0,a
  460.          res bit0,l
  461.          res bit0,(hl)
  462.          res bit0,(ix+forward3)
  463.          res bit0,(iy+forward4)
  464.          res bit7,a
  465.          res bit7,l
  466.          res bit7,(hl)
  467.          res bit7,(ix+forward3)
  468.          res bit7,(iy+forward4)
  469.          rl (ix+forward3)
  470.          rl (iy+forward4)
  471.          rlc (ix+forward3)
  472.          rlc (iy+forward4)
  473.          rr (ix+forward3)
  474.          rr (iy+forward4)
  475.          rrc (ix+forward3)
  476.          rrc (iy+forward4)
  477.          sbc a,forward2
  478.          sbc a,forward1
  479.          sbc a,(ix+forward3)
  480.          sbc a,(iy+forward4)
  481.          set bit0,a
  482.          set bit0,l
  483.          set bit0,(hl)
  484.          set bit0,(ix+forward3)
  485.          set bit0,(iy+forward4)
  486.          set bit7,a
  487.          set bit7,l
  488.          set bit7,(hl)
  489.          set bit7,(ix+forward3)
  490.          set bit7,(iy+forward4)
  491.          sla (ix+forward3)
  492.          sla (iy+forward4)
  493.          sra (ix+forward3)
  494.          sra (iy+forward4)
  495.          srl (ix+forward3)
  496.          srl (iy+forward4)
  497.          sub forward2
  498.          sub forward1
  499.          sub (ix+forward3)
  500.          sub (iy+forward4)
  501.          xor forward2
  502.          xor forward1
  503.          xor (ix+forward3)
  504.          xor (iy+forward4)
  505.  
  506. synctst2:
  507. longtest:.equ forward1,h'ff
  508.          .equ forward2,h'00
  509.          .equ forward3,-128
  510.          .equ forward4,127
  511.          .equ bit0,0
  512.          .equ bit7,7
  513.          .end
  514.